home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / V15N04.ZIP / WARPCA.ZIP / WCABSRC.ZIP / DETAILS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-18  |  1.0 KB  |  43 lines

  1. // DFileDetailsDlg -- Class implementation
  2. #include <assert.h>
  3. #include <cstring.h>
  4. #include <dir.h>
  5. #include <classlib\arrays.h>
  6. #include <owl\owlpch.h>
  7. #include <owl\dialog.h>
  8. #include <owl\edit.h>
  9. #include <owl\static.h>
  10. #include <owl\button.h>
  11. #include "os2api.h"
  12. #include "resource.h"
  13. #include "details.h"
  14.  
  15. #define DID_OK      1
  16. #define DID_CANCEL  2
  17.  
  18. DEFINE_RESPONSE_TABLE1(DFileDetailsDlg, TDialog)
  19.     EV_CHILD_NOTIFY(DID_OK, BN_CLICKED, CmOk),
  20. END_RESPONSE_TABLE;
  21.  
  22. void DFileDetailsDlg::SetupWindow()
  23. {
  24.     TDialog::SetupWindow();
  25.  
  26.     // If confirm all, then other checkboxes are disabled.
  27.     CheckDlgButton(IDC_FILESIZE, bOldShowSize);
  28.     CheckDlgButton(IDC_LAST_MODIFIED, bOldShowTimeStamp);
  29.     CheckDlgButton(IDC_ATTRIBUTES, bOldShowSize);
  30. }
  31.  
  32. void DFileDetailsDlg::CmOk()
  33. {
  34.     // Retrieve new settings and write them back to parent's data.
  35.     *pbOldShowTimeStamp = IsDlgButtonChecked(IDC_LAST_MODIFIED);
  36.     *pbOldShowAttr = IsDlgButtonChecked(IDC_ATTRIBUTES);
  37.     *pbOldShowSize = IsDlgButtonChecked(IDC_FILESIZE);
  38.  
  39.     CloseWindow(TRUE);
  40. }
  41.  
  42.  
  43.